<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<script src="scripts/apps/sparepart/stat.js" type="text/javascript"></script>
<form class="well form-inline" id="statform">
	<label> 日期: </label> <input name="usedate" class="Wdate"
		onClick="WdatePicker()"
        value="<fmt:formatDate value="${usedate}" pattern="yyyy-MM-dd"/>"
		readonly />
	<button type="button" class="btn btn-inverse" id="statBtn">
		<i class="icon-list-alt icon-white"></i> 统计
	</button>
</form>
<table class="table table-bordered">
	<thead>
		<tr>
			<th width="200">上报单位</th>
			<th>上报数量</th>
			<th>送修日期</th>
		</tr>
	</thead>
	<tbody>

		<c:forEach items="${pageData.rows}" var="bean" varStatus="vs">
			<tr>
				<td><a href="javascript:;"
					onclick="statDetail('${bean.owner.id}','${usedate}');">${bean.owner.name}</a>
				</td>
				<td>${bean.count}</td>
				<td>${usedate}</td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="4" align="right">${pageData.pagination}</td>
		</tr>
	</tfoot>
</table>